//
//  ViewController.m
//  PushNoti
//
//  Created by lizhongren on 15/10/20.
//  Copyright © 2015年 lizhongren. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController
- (IBAction)buttonAction:(id)sender {
    
    
    
    
    
}

- (void)handleAction:(NSNotification *)noti
{
    self.view.backgroundColor = [UIColor redColor];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleAction:) name:@"noti" object:nil];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
